home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / filesyst / xiafs / xiafspgm.8 / xiafspgm / xiafspgm-0.8.1 / bootsect.h next >
C/C++ Source or Header  |  1993-03-22  |  846b  |  33 lines

  1. /*----------------------------------------------------------------------*
  2.  * bootsect.h                                *
  3.  *                                    *
  4.  * Copyright (C) Q. Frank Xia, 1993.  All rights reserved.              *
  5.  *                                                     *
  6.  * This software may be redistributed as per Linux copyright        *
  7.  *                                    *
  8.  -----------------------------------------------------------------------*/
  9.  
  10. #define SECTEXTSIZE      496
  11. #define PRITEXTSIZE    382
  12. #define ORGTEXTSIZE     446
  13.  
  14. struct mast_text {
  15.     u_char     mast_code[PRITEXTSIZE];
  16.     struct     {
  17.         char   os_name[15];
  18.     char   part_nr;
  19.     }          os[4];
  20. };
  21.  
  22. struct boot_text {
  23.     u_char     boot_code[SECTEXTSIZE];
  24.     u_long     Istart_sect;
  25.     u_short    end_seg;
  26.     u_short    swap_dev;
  27.     u_short    ram_size;
  28.     u_short    video_mode;
  29.     u_short    root_dev;
  30.     u_short    boot_flag;
  31. };
  32.  
  33.